import { createApp } from 'vue';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css'
// 全局组件
import gloalComponent from '@/components/index.ts'
// 国际化
//@ts-ignore 忽略当前文件ts类型的检测否则有红色提示(打包会失败)
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
//@ts-ignore
import App from '@/App.vue';
//@ts-ignore
import 'virtual:svg-icons-register'
import  '@/styles/index.scss'
import router from './router'
import pinia  from '@/store';
const app  = createApp(App);
app.use(ElementPlus, {
  locale: zhCn
});

app.use(pinia)
app.use(router)
// 安装自定义插件
app.use(gloalComponent)
app.mount('#app');